mui.init({
	swipeBack: true //启用右滑关闭功能
});
var state = app.getState();
var uid = state.user_id;
var getUrl = apiurl + "chat/getRoomList/?&user_id=" + uid;
/*
document.querySelector('.mui-media-object').setAttribute('src', "../" + header);
document.querySelector('#name').innerHTML = chatName;
document.querySelector('.mui-ellipsis').innerHTML = '昵称:' + chatName;
*/
mui.getJSON(getUrl, function(res) {
	console.log(JSON.stringify(res.info));
	document.querySelector("#list-area").innerHTML = template('list-template', {
		"list": list
	});
});